<!---
	Copyright 2010 Edward Trudeau, Jeremy Battle
    This software is freely available under the MIT License: http://www.opensource.org/licenses/mit-license.php
    http://ayc.googlecode.com
    
--->

<cfcomponent name="UserService" output="false" extends="_UserService">
	
    <cfset variables.objectInstance = structNew() />
	

	<cffunction name="init" access="public" output="false" returntype="UserService">
		<cfargument name="UserDAO" type="UserDAO" required="true" />
		<cfargument name="UserGateway" type="UserGateway" required="true" />

		<cfset super.init(arguments.UserDAO, arguments.UserGateway) />

		<cfreturn this/>
	</cffunction>
    
    <cffunction name="getGateway" access="public" output="false" returntype="UserGateway">
    	<cfreturn variables.UserGateway />
    </cffunction>
    
    
    <cffunction name="getDAO" access="public" output="false" returntype="UserDAO">
    	<cfreturn variables.UserDAO />
    </cffunction>
</cfcomponent>


